<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width"/>
   <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title>个人信息</title>
     <link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css" />
     <link rel="stylesheet" href="../../css/personInformation.css">
    <script type="text/javascript" src="../../script/api.js"></script>
    <script type="text/javascript" src="../../script/jquery-3.2.1.min.js"></script>

    <script type="text/javascript" src="../../script/main.js"></script>
  </head>

  <body>
    <div class="header">
    <div class="back" onclick="closeWin()"></div>
      <h3>个人信息</h3>
    </div>
    <div class="information">
      <div class="basic">基本信息：</div>
      <div class="edit">

        <div class="editImg"></div>
          <a onclick="openPage('edit','edit.html')" class="editIformation">编辑</a>
      </div>
    </div>
    <div class="content">
      <table class="table">
        <tbody>

        </tbody>

      </table>

    </div>
  </body>
<script type="text/javascript">
apiready=function(){
var aid=$api.getStorage('aid');
var url='/api/paTechnicaluser/'+aid;
var functionRet=function(ret){
  console.log(222);
 if(ret.sex == 1){
   ret.sex = "男";
 }
 else{
   ret.sex = "女";
 }
 var templates="<tr><td>"+"昵称：&nbsp&nbsp"+ret.nickname+"</tr></td>"+"<tr><td>"+"真实姓名：&nbsp&nbsp"+ret.realName+"</tr></td>"+
 "<tr><td>"+"性别：&nbsp&nbsp"+ret.sex+"</tr></td>"+"<tr><td>"+"年龄：&nbsp&nbsp"+ret.age+"</tr></td>"+
 "<tr><td>"+"生日：&nbsp&nbsp"+ret.birthday+"</tr></td>"+"<tr><td>"+"学号：&nbsp&nbsp"+ret.studentId+"</tr></td>"+
 "<tr><td>"+"身份证号：&nbsp&nbsp"+ret.idCard+"</tr></td>"+
 "<tr><td>"+"地址：&nbsp&nbsp"+ret.address+"</tr></td>"+"<tr><td>"+"求职意向：&nbsp&nbsp"+ret.function+"</tr></td>"+
 "<tr><td>"+"求职状态：&nbsp&nbsp"+ret.jobStatus+"</tr></td>"+"<tr><td>"+"就业区域：&nbsp&nbsp"+ret.workPlace+"</tr></td>";
 $(".content .table:eq(0) tbody").append(templates);
}
var functionErr=function(err){
 toast("加载简历失败！","bottom");
}
get(url,functionRet,functionErr);
}
</script>
</html>
